<template>
  <div class="about">
    <h1>This is an about page</h1>
  </div>
</template>
<script>
import {onMounted, ref} from "vue"
import axios from "axios";

export default {
  setup() {
    let data = ref({
      title:"测试",
      content:"",
    })

    onMounted(async ()=>{
      try {
        const res = await axios.get()
        console.log(res)
        data.value = res.data
      } catch (error){
        console.log("请求失败！",error)
      }
    })
    return {data};
  }
}
</script>